package com.risk.kernel.domain;

import com.risk.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * @author: Liwen
 * @createTime: 2024/11/21
 * @description:
 */
public class KfConfig extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private Long id;

    private String dbName;

    private String tableName;

    private String querySql;

    private String deleteKey;

    /**
     * 模块
     */
    private String modelName;

    /**
     * 1:启用,0:关闭
     */
    private Boolean disable;


    /**
     * 备注
     */
    private String notes;

    /**
     * 创建人
     */
    private String founder;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setDbName(String dbName) {
        this.dbName = dbName;
    }

    public String getDbName() {
        return dbName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getTableName() {
        return tableName;
    }

    public void setQuerySql(String querySql) {
        this.querySql = querySql;
    }

    public String getQuerySql() {
        return querySql;
    }

    public void setDeleteKey(String deleteKey) {
        this.deleteKey = deleteKey;
    }

    public String getDeleteKey() {
        return deleteKey;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    public String getModelName() {
        return modelName;
    }

    public void setDisable(Boolean disable) {
        this.disable = disable;
    }

    public Boolean getDisable() {
        return disable;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public String getNotes() {
        return notes;
    }

    public void setFounder(String founder) {
        this.founder = founder;
    }

    public String getFounder() {
        return founder;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("dbName", getDbName())
                .append("tableName", getTableName())
                .append("querySql", getQuerySql())
                .append("deleteKey", getDeleteKey())
                .append("modelName", getModelName())
                .append("disable", getDisable())
                .append("notes", getNotes())
                .append("founder", getFounder())
                .toString();
    }
}
